# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=pspp
pkgver=1.4.1
pkgrel=3
pkgdesc="GNU PSPP is a program for statistical analysis of sampled data"
url="https://www.gnu.org/software/pspp/"
arch="all"
license="GPL-3.0-only"
subpackages="$pkgname-dbg $pkgname-doc"
source="https://ftpmirror.gnu.org/pspp/pspp-$pkgver.tar.gz"
makedepends="
	cairo-dev
	gettext-dev
	gnu-libiconv-dev
	gsl-dev
	gtk+3.0-dev
	gtksourceview-dev
	libxml2-dev
	pango-dev
	pango-dev
	perl-dev
	python3
	readline-dev
	spread-sheet-widget-dev
	zlib-dev
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-stripping
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c664a6c6f4f1826db396ad776d81cadc791e4f661c603a7f164f70f9571a84cfae6fec116356b3f950991245b2b0dc9805e75193a055a242558cda1209e7830f  pspp-1.4.1.tar.gz
"
